package light.mvc.initbasefolder;

import javax.transaction.HeuristicMixedException;
import javax.transaction.HeuristicRollbackException;
import javax.transaction.RollbackException;
import javax.transaction.SystemException;


import org.hibernate.SessionFactory;
public class InitBaseFolder {
	public InitBaseFolder(SessionFactory sessionFactory,String basePath) throws SecurityException, IllegalStateException, RollbackException, HeuristicMixedException, HeuristicRollbackException, SystemException {
	/*	Session session = sessionFactory.openSession();
		sessionFactory.getCurrentSession()
		Transaction tx = session.beginTransaction();
		Tmaterial tm = new Tmaterial();
		tm.setName("文档");
		tm.setUrl(basePath);
		sessionFactory.getCurrentSession().save(tm);
		tx.commit();
		session.close();*/
	}
}
